-- cannon_perfloor
-- created by shuzy
-- 进入下层陷阱，火炮威力加N

return {
    apply = function(prop, baseValue)
        return prop[3];
    end,

    -- 进入下层触发触发
    trigger = function(who, prop, arg)
        local count  = prop[3];
        BonusM.doBonus({ 2, "cannon", count, }, "cannon_perfloor");

        return prop[3];
    end,

    desc = function(prop)
        local row = PropM.getRow(prop[1]);
        local desc = row.desc;
        desc = string.gsub(desc, "{1}", prop[3]);

        return desc;
    end,

    record = function(target, prop, path)
        return false;
    end 
};